#include <bits/stdc++.h>
#define ll long long 
#define PI pair<int,int>
using namespace std;
bool cmp(int a,int b)
{
	return a>b;
}
int a[100005];
bool h[100005];
int main()
{
	/**/freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);/**/
	ios::sync_with_stdio(0);
	cin.tie(0);cout.tie(0);
	int n;
	cin>>n;
	for(int i=1;i<=n;i++)cin>>a[i];
	sort(a+1,a+n+1);
	int now=1,ans=0;
	for(int i=2;i<=n;i++)
	{
		if(a[i]>a[now])
		{
			h[now]=1;
			while(h[now])now++;
			ans++;
		
		}
		//if(i<=100)cout<<a[i]<<' '<<a[now]<<'\n';
	}
	cout<<n-ans;
	return 0;
}
/**







/**/
